package com.qm.web.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.qm.mapper.ItemDescMapper;
import com.qm.mapper.ItemMapper;
import com.qm.pojo.Item;
import com.qm.pojo.ItemDesc;
import com.qm.service.DubboItemService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 @author james
 @create 2021-04-29 20:17
 */
@Service
public class DubboItemServiceImpl implements DubboItemService {

    @Autowired
    private ItemMapper itemMapper;
    @Autowired
    private ItemDescMapper itemDescMapper;


    @Override
    public Item findItemById(Long itemId) {
        return itemMapper.selectById(itemId);
    }

    @Override
    public ItemDesc findItemDescById(Long itemId) {
        return itemDescMapper.selectById(itemId);
    }
}
